package com.language.points.multi.thread.num;

/**
 * 多线程 - 测试类
 * @author yll
 * @version 1.0.0
 * @date 2024/04/12 14：25
 * @desc 测试类
 * */
public class NumThreadTest {
    public static void main(String[] args) {
        Numbers num = new Numbers(0);
        Thread thread1 = new Thread(new NumAddThread(num));
        Thread thread2 = new Thread(new NumSubThread(num));
        Thread thread3 = new Thread(new NumAddThread(num));
        Thread thread4 = new Thread(new NumSubThread(num));
        Thread thread5 = new Thread(new NumAddThread(num));
        Thread thread6 = new Thread(new NumSubThread(num));

        thread1.start();
        thread2.start();
//        thread3.start();
//        thread4.start();
//        thread5.start();
//        thread6.start();

    }
}
